package jf.jcube.model;

import java.io.Serializable;

public class Dimension implements Cloneable , Serializable{
    private static final long serialVersionUID = 1L;
    
    private final String name;
    
    private final DomainType type;

    private final String description;

    public Dimension(String name, DomainType type) {
        this(name, type, "");
    }

    public Dimension(String name, DomainType type, String desc) {
        this.name = name;
        this.type = type;
        this.description = desc;
    }

    public String getName() {
        return name;
    }

    public DomainType getType() {
        return type;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return "Dim [" + name + " , " + type + " ]";
    }
    
}
